
<template>
  <div class="wrap">
    <iframe class="manual__iframe" :src="'static/web/viewer.html?file=' + encodeURI(pdfUrl)" frameborder="0"></iframe>
  </div>
</template>

<script>
export default {
  data() {
    return {
      pdfUrl: '', // PDF的base64
    }
  },
 async mounted() {
    this.pdfUrl = this.$route.query.path
    // this.fileLinkToStreamDownload(this.pdfUrl)
    if (ZWJSBridge) {
      ZWJSBridge.setTitle({
        title: '文章详情',
      })
        .then((res) => {})
        .catch((err) => {})
    }
  },
  methods: {

  },
}
</script>

<style lang="scss" scoped>
.wrap .manual__iframe {
  background-color: #fff !important;
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
}
</style>
